#!/usr/bin/env python2.7
# -*- coding:utf-8 -*- 

# merra.py

import os, sys
from metlib.color.cmap_utils import get_cmap as mm_get_cmap
from metlib.kits import *
# from colormap.models import *
# from colormap.utils import *
from matplotlib.cm import *

# terrain2 = mm_get_cmap((terrain, (0.0, 0.75)))
# terrain2_r = mm_get_cmap((terrain_r, (0.25, 1.0)))
#
# cmap_d = {
#     'jet': jet,
#     'jet_r': jet_r,
#     'Spectral_r': Spectral_r,
#     'Spectral': Spectral,
#     'spectral_r': spectral,
#     'spectral': spectral_r,
#     'grey': Greys,
#     'grey_r': Greys_r,
#     'terrain': terrain,
#     'terrain_r': terrain_r,
#     'terrain2': terrain2,
#     'terrain2_r': terrain2_r,
#     # 功能性的:
#     'temperature': jet,
#     'solar': jet,
#     'rain': mm_get_cmap((spectral_r, (0.15, 1))),
#     'pressure': terrain_r,
#     'height': terrain
# }

def run():
    print "Generating Colormaps ..."
    for cmap_name, cmap in cmap_d.iteritems():
        print cmap_name
        gen_colormap(cmap_name, cmap, N=64)

